<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      body {
        background-color: #ccc;
      }

      .box {
        width: 200px;
        height: 200px;
        background-color: #fff;
        transition: all 2s linear;
      }
      .box:hover {
        cursor: pointer;
        transform: rotateX(80deg);
      }
      .other {
        width: 200px;
        height: 200px;
        background-color: black;
        margin-top: 20px;
        animation: large 2s linear infinite;
      }

      @keyframes large {
        0% {
          background-color: red;
        }
        100% {
          background-color: blue;
        }
      }
    </style>
  </head>
  <body>
    <div class="box"></div>
    <div class="other"></div>
  </body>
</html>
